/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sys.entity;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 系统token记录Entity
 * @author Jack
 * @version 2017-09-26
 */
public class SysToken extends DataEntity<SysToken> {
	
	private static final long serialVersionUID = 1L;
	private String appid;		// app标识
	private String secret;		// app秘钥
	private String loginIp;		// 最后请求ip
	private String siteName;		// 站点名
	private Integer expiresMin;		// token默认超时
	private String token;		// token令牌
	private String creator;		//创建者
	private Date createDate;		//创建日期
	private String revisor;		//更新者
	private Date updateDate;		//更新时间
	private String remarks;		//备注
	private String delFlag;		//删除标识
	
	public SysToken() {
		super();
	}

	public SysToken(String id){
		super(id);
	}

	@Length(min=0, max=100, message="app标识长度必须介于 0 和 100 之间")
	public String getAppid() {
		return appid;
	}

	public void setAppid(String appid) {
		this.appid = appid;
	}
	
	@Length(min=0, max=100, message="app秘钥长度必须介于 0 和 100 之间")
	public String getSecret() {
		return secret;
	}

	public void setSecret(String secret) {
		this.secret = secret;
	}
	
	@Length(min=0, max=100, message="最后请求ip长度必须介于 0 和 100 之间")
	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}
	
	@Length(min=0, max=100, message="站点名长度必须介于 0 和 100 之间")
	public String getSiteName() {
		return siteName;
	}

	public void setSiteName(String siteName) {
		this.siteName = siteName;
	}
	
	@Length(min=0, max=50, message="token默认超时长度必须介于 0 和 50 之间")
	public Integer getExpiresMin() {
		return expiresMin;
	}

	public void setExpiresMin(Integer expiresMin) {
		this.expiresMin = expiresMin;
	}
	
	@Length(min=0, max=255, message="token令牌长度必须介于 0 和 255 之间")
	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	@Override
	public Date getCreateDate() {
		return createDate;
	}

	@Override
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getRevisor() {
		return revisor;
	}

	public void setRevisor(String revisor) {
		this.revisor = revisor;
	}

	@Override
	public Date getUpdateDate() {
		return updateDate;
	}

	@Override
	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	@Override
	public String getRemarks() {
		return remarks;
	}

	@Override
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Override
	public String getDelFlag() {
		return delFlag;
	}

	@Override
	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	
	
}